package io.renren.dao;

import io.renren.entity.SysAreaEntity;
import io.renren.entity.VO.SysAreaEntityVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 区域管理
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-06-14 10:24:14
 */
public interface SysAreaDao extends BaseDao<SysAreaEntity> {

    int findSubCount(Long areaId);

    List<SysAreaEntityVO> getTreeByParentid(String pid);

    SysAreaEntityVO getTreeById(String id);

    void updateArea(@Param("areaId")String areaId, @Param("parentareaId")String parentareaId);
}
